cmake_minimum_required(VERSION 2.8)
project(CoordinateTransform)


find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-O3")
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${EIGEN3_INCLUDE_DIRS})
include_directories(${OpenCV_INCLUDE_DIRS})

link_directories(${OpenCV_LIBRARY_DIRS})

add_definitions(${OpenCV_DEFINITIONS})
add_definitions(-std=c++11)


add_executable(CoordinateTransform CoordinateTransform.cpp)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

target_link_libraries(CoordinateTransform ${OpenCV_LIBS})

